<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                      


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

<ui:composition template="template.xhtml">
<link href="../css/styles.css" rel="stylesheet" type="text/css" />

	<ui:define name="title">
		<f:view>
			<title>Login Administrateur</title>
		</f:view>
	</ui:define>

	<ui:define name="body">
	<f:view>
		<h:form id="loginForm">
     		<table class="loginTable">
				<tr>
					<td><h:outputText value="Identifiant :" /></td>
					<td><h:inputText id="userName" value="#{personne.nom}"
						required="true">
						<f:validateLength minimum="1" />
					</h:inputText></td>
				</tr>
				<tr>
					<td><h:outputText value="Mot de passe :" /></td>
					<td><h:inputSecret id="password"
						value="#{personne.motDePasse}" required="true">
						<f:validateLength minimum="3" />
					</h:inputSecret></td>
				</tr>
			</table>
			<div><h:messages errorStyle="erreur" /></div>
			<div class="connexionButton">
				<h:commandButton id="submit" action="#{personneCollection.loginUser}" value="Connexion" />
			</div>			
		</h:form>
	</f:view>
	
	
	
	
		</ui:define>

</ui:composition>

</html>